package com.example.chat.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName(value = "user")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class User{

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("phone")
    private String phone;
    @TableField("student_id")
    private Long StudentId;
    @TableField("password")
    private String password;
    @TableField("username")
    private String userName;
    @TableField("icon")
    private String icon;
    @TableField("sex")
    private Integer sex;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("update_time")
    private LocalDateTime updateTime;

}
